#include "Dlist.h"

int main()
{
	ListNode* dlist = ListCreate();
	ListPushBack(dlist, 1);
	ListPushBack(dlist, 2);
	ListPushBack(dlist, 3);
	ListPushBack(dlist, 4);
	ListPushBack(dlist, 5);
	ListPrint(dlist);

	ListPopBack(dlist);
	ListPopBack(dlist);
	ListPrint(dlist);

	ListPushFront(dlist, 7);
	ListPushFront(dlist, 8);
	ListPushFront(dlist, 9);
	ListPrint(dlist);

	ListNode*tmp = ListFind(dlist, 7);
	//ListInsert(tmp, 20);
	ListErase(tmp);
	ListPrint(dlist);
	ListDestory(dlist);
	return 0;
}